#ifndef TITLE_H
#define TITLE_H

#include "dom.h"

#include <string>
#include <sstream>
#include <iostream>

using namespace std;

namespace model {
	class title {
	public:
		title():_duration(0) {}
		title(const model::dom &node);
		title(const string &tit, int dur): _title(tit), _duration(dur){}
		~title() {}

		void parse(const model::dom &node);

		void set_title(const string &t) {_title = t;}
		const string & get_title() const {return _title;}

		void set_filename(const string &f) {_filename = f;}
		const string & get_filename() const {return _filename;}

		void set_duration(int dur) {_duration = dur;}
		int get_duration() const {return _duration;}

		void print() const;
	private:
		string _title;
		string _filename;
		int _duration;
	};
}

#endif
